package com.neuedu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neuedu.model.Product;
import com.neuedu.model.Stock;
import org.apache.ibatis.annotations.Update;

public interface StockDao extends BaseMapper<Stock> {
    //库存信息管理-添加
    void addStock(Stock stock);
    // 减少库存
    int reduceStock(Integer sid, Integer quantity);
    // 增加库存
    int increaseStock(Integer sid, Integer quantity);
}